﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.BLL;

namespace ZF.WS.UserControls
{
    public partial class TTLine : System.Web.UI.UserControl
    {
        public string url { get { return Request.Url.ToString().ToLower(); } }
        public IMember Member { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            Member = SiteInfo.Instance.GetCurrentMember();
            if (Member != null && Member.UserType== UserType.Member)
            {
                this.divWelcome.Visible = true;
                this.frmLogin.Visible = false;
            }
            else
            {
                this.divWelcome.Visible = false;
                this.frmLogin.Visible = true;
            }
            
#if(l)
            if(SiteInfo.Instance.IsLocal)
                scriptl.Visible = true;
#endif

        }
    }
}